print("字符串实战")
str1 = "xiaohei is a handsome boy"
num1 = str1.count("i")
print("i字符共有：", num1)
str2=str1.replace(" ","|")
print("替换空格得字符串：",str2)
str3=str2.split("|")
print("分割得内容：",str3)
